package com.zsk.shop.controller.app;

import com.zsk.shop.common.annotion.NoPermission;
import com.zsk.shop.common.base.BaseResponse;
import com.zsk.shop.model.results.ShopBannerListResult;
import com.zsk.shop.service.ShopBannerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Administrator
 */
@RestController
@Api(tags = "商城-Banner")
@RequestMapping("/shop/banner")
public class ShopBannerController {

    @Resource
    private ShopBannerService shopBannerService;

    @NoPermission
    @GetMapping("/bannerList.do")
    @ApiOperation("banner列表")
    public BaseResponse<ShopBannerListResult> bannerList() {
        return shopBannerService.bannerList();
    }

}
